<html>
    <head>

    </head>
    <body>
        <script>
            var d1=new Date();
            document.write(d1);
            document.write("<br >");
            document.write(d1.getFullYear()+"年");
            document.write(d1.getMonth()+"月");
            document.write(d1.getDate()+"日")
            document.write("&nbsp;");
            document.write(d1.getHours()+":");
            document.write(d1.getMinutes()+":");
            document.write(d1.getSeconds());
            document.write("&nbsp;");
            var weeks=["日","一","二","三","四","五","六"];
			document.write("星期"+weeks[d1.getDay()]);
        </script>
    </body>
</html>